import { defineStore } from 'pinia';
import { set } from 'vue-demi';

export const useUserStore = defineStore('user', {
    state: () => ({
        token:{},
        userInfo:{},
        post:{},
    }),

    actions: {
        setToken(data) {
            this.token = data;
        },
        setUserInfo(data) {
            this.userInfo = data;
        },
        setPost(data) {
            this.post = data;
        }
    }
});
